/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-03 17:30:39
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-03 17:35:19
 * @别瞎看: 你个无脑牛马
 */
import java.util.Scanner;

 public class Test_Season{
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入月份（1-12）：");
        int month=scanner.nextInt();
        //
        if(month<1||month>12){
            System.out.println("输入月份有误");
        }else{
            String season=getSeason(month);
            System.out.println(month+"月属于"+season);
        }
        scanner.close();
    }
    private static String getSeason(int month){
        if(month>=12||month<=2){
            return"冬天";
        }else if(month>=3||month<=5){
            return"春天";
        }else if(month>6||month<=8){
            return"夏天";
        }else{
            return"秋天";
        }
    }
}
